<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<title>我的<?php echo $output['site_name']?></title>
<link href="<?php echo TEMPLATE_SITE_URL;?>/css/common.css" type="text/css" rel="stylesheet">
<link href="<?php echo TEMPLATE_SITE_URL;?>/css/user.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>
</head>
<body>
<div id="contentbox">
  <div class="myMain">
    <div class="myinfoContainer"> <a href="index.php?act=my&op=home&uid=<?php echo $output['user']['user_id'];?>">
      <div class="avatarBox">
        <div class="avatar" style="background-image: url(<?php echo $output['user']['avatar'];?>)"></div>
      </div>
      <div class="name"><?php echo $output['user']['nickname']?></div>
      <div class="signature"><?php echo $output['user']['signature']?></div>
      </a>
      <div class="statics"> 
      	<a href="index.php?act=my&op=focus&user_id=<?php echo $output['user']['user_id'];?>">
        	<div class="staticsItem"><?php echo $output['mcount'];?><br>关注</div>
        </a>
        <div class="line"></div>
        <a href="index.php?act=my&op=fans&user_id=<?php echo $output['user']['user_id'];?>">
        	<div class="staticsItem"><?php echo $output['fcount'];?><br>粉丝</div>
        </a>
        <div class="line"></div>
        <a href="index.php?act=my&op=userorder&user_id=<?php echo $output['user']['user_id'];?>">
        <div class="staticsItem"><?php echo $output['usernum'];?><br>买入</div>
        </a>
        <div class="line"></div>
        <a href="index.php?act=my&op=sellerorder&user_id=<?php echo $output['user']['user_id'];?>">
        <div class="staticsItem"><?php echo $output['sellernum'];?><br>卖出</div>
        </a> </div>
    </div>
    <div class="menuBanner">
      <div class="menuItem " onclick="javascript:location.href='index.php?act=my'"><span>我发布的</span> </div>
      <div class="menuItem selected" onclick="javascript:location.href='index.php?act=my&type=1'"><span>我喜欢的</span> </div>
      <div class="shakeMenuItem" onclick="javascript:location.href='index.php?act=index&op=yao';"></div>
    </div>

    <div class="listContainer">
      <div class="titleBanner">
        <div class="title">拍品</div>
      </div>
      <div class="saleBox over liekdata"></div>
    </div>
    <div class="listContainer like">
      <div class="saleBox like"></div>
    </div>
  </div>
  <div class="myMenu showtip"></div>
  <div class="myMenuMain">
    <div class="menuMask"></div>
    <div class="menuBox">
      <div class="menuItem userinfo">
        <div class="avatar" style="background-image: url(<?php if(!empty($output['user']['avatar'])){ echo $output['user']['avatar'];}else{ echo 'member.png';}?>)"></div>
        <div class="name"><?php echo $output['user']['nickname']?>
          <div class="syncUserinfo"></div>
        </div>
        <div class="signature"></div>
      </div>
      <a href="index.php?act=my&op=message">
      <div class="menuItem msg">
        <div class="title">我的消息</div>
        <div class="desc"><span>不错过</span>每个消息</div>
      </div>
      </a>
      <a href="index.php?act=my&op=myinfo&user_id=<?php echo $output['user']['user_id'];?>">
      <div class="menuItem balance">
        <div class="title">我的余额</div>
        <div class="desc">余额<span> <?php echo $output['user']['price'];?>元</span></div>
      </div>
      </a>
      <a href="index.php?act=my&op=userorder&userid=<?php echo $output['user']['user_id'];?>">
      <div class="menuItem order">
        <div class="title">我的订单</div>
        <div class="desc">买买买，<span>卖卖卖</span></div>
      </div>
      </a>
      <a href="index.php?act=index&op=qunfa">
      <div class="menuItem saleMsg">
        <div class="title">群发消息</div>
        <div class="desc"><span>群发</span>拍品消息</div>
      </div>
      </a>
      <a href="index.php?act=index&op=yao&cate_id=1">
      <div class="menuItem shake">
        <div class="title">摇一摇</div>
        <div class="desc"><span>搜罗</span>兴趣拍品</div>
      </div>
      </a>
      <a href="index.php?act=renzheng&op=renzheng">
      <div class="menuItem manage">
        <div class="title">资质认证</div>
      </div>
      </a>
      <div class="menuBottom">
        <div class="menuItem help" onclick="location.href='<?php echo $output['help_link']['value'];?>';">
          <div class="title">帮助中心</div>
        </div>
        <div class="menuItem about" onclick="location.href='<?php echo $output['about_link']['value'];?>';">
          <div class="title">关于<?php echo $output['site_name'];?></div>
        </div>
    </div>
    </div>
  </div>  
 <a href="index.php?act=my&op=myinfo">
 	<div class="balanceMenu"><?php echo $output['user']['price'];?> 元</div>
 </a>
</div>

<input type="hidden" name="haspage" value="1" id="haspage">
<input type="hidden" name="pagenum" value="0" id="pagenum">
<div class="loadNextPage" style="margin-top:10px;color:#777;text-align:center;font-size:13px;display:none;">
	<div class="loading" style="width:100px;height:40px;margin-left:auto;margin-right:auto">
		<img src="<?php echo TEMPLATE_SITE_URL;?>/images/loadingData.gif" style="float:left">
		<span style="float:left;margin-top:10px;">加载拍卖</span>
	</div>
</div>
<script>
$(function(){

    $(window).scroll(function () {
        var $body = $("body");
        if (($(window).height() + $(window).scrollTop()) >= $body.height()) {
	        var haspage = parseInt($('#haspage').val());
	        if(haspage=='0'){
				return false;
			}
    		var pagenum = parseInt($('#pagenum').val());
    		var nextpage = eval(pagenum+1);
    				
    		ajaxdata(nextpage);
        }
    });

    function ajaxdata(nextpage){       
		$.ajax({
			type:'get',
			url:'index.php?act=my&op=likedata',
			data:{nextpage:nextpage},
			dataType:'html',
			success:function(html){
				$('.loadNextPage').hide();
				if(html==''){
					$('#haspage').val('0');
				}else{
					$('#pagenum').val(nextpage);
					$('.liekdata').append(html);
				}
			},
			beforeSend:function(){
				$('.loadNextPage').show();
			}
		});
    }
    
    ajaxdata(1);
	
	$('.showtip').click(function(){
		$('.myMenuMain').show();
	});

	$('.menuBox').click(function(){
		$('.myMenuMain').hide();
	});
});
</script>
<?php include template('home/nav');?>
</body>
</html>
